package com.cjy.map;

public class Student {
    private String name;
    private double revenue;

    public Student(String name, double revenue) {
        this.name = name;
        this.revenue = revenue;
    }

    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public double getRevenue() {
        return revenue;
    }
    public void setRevenue(double revenue) {
        this.revenue = revenue;
    }

    @Override
    public String toString() {
        return " name:"+getName()+" 收入:"+getRevenue();
    }
}
